//
//  ViewController.h
//  HTML_CSS_JS
//
//  Created by fans on 15/11/29.
//  Copyright © 2015年 FF. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <JavaScriptCore/JavaScriptCore.h>

@protocol TestJSExport <JSExport>

//定义js方法和OC方法的对应规则
JSExportAs(jsFuntion, - (int)jsCallOCFuntion:(NSNumber*)value );

- (void)pushViewController:(NSString *)view title:(NSString *)title;
@end

@interface ViewController : UIViewController
@property (nonatomic, strong)JSContext * jsContent;
@property (weak, nonatomic) IBOutlet UIWebView *webView;

- (IBAction)runAction:(id)sender;

@end

